package com.castle.fortress.admin.flowable.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * 流程应用管理表 实体类
 *
 * @author castle
 * @since 2022-09-26
 */
@Data
public class FlowableAppDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("id")
	private Long id;
	@JsonProperty("title")
	private String title;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("flowId")
	private Long flowId;
	@JsonProperty("status")
	private Integer status;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonProperty("createTime")
	private Date createTime;

	@ApiModelProperty(value = "人员部门信息")
	@JsonProperty("authData")
	private String authData;
	@ApiModelProperty(value = "表单标识")
	@JsonProperty("formKey")
	private Long formKey;
	@JsonProperty("size")
	protected Integer size;
	@JsonProperty("current")
	protected Integer current;


	@ApiModelProperty(value = "审批状态/搜索用")
	@JsonProperty("approveStatus")
	private Integer approveStatus;
}
